package com.example.excel.controller;

import com.example.excel.service.StudentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RestController
@RequestMapping("/student")
public class StudentController {

    @Resource
    private StudentService service;

    @GetMapping("/export")
    public void export(HttpServletResponse response) throws IOException {
        service.export(response);
    }
}
